using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Entity.ERP
{
    public class is_accountMap : EntityTypeConfiguration<is_account>
    {
        public is_accountMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.account_id)
                .IsRequired()
                .HasMaxLength(128);

            this.Property(t => t.name)
                .IsRequired()
                .HasMaxLength(128);

            this.Property(t => t.data)
                .HasMaxLength(128);

            // Table & Column Mappings
            this.ToTable("is_account", "erp");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.account_id).HasColumnName("account_id");
            this.Property(t => t.name).HasColumnName("name");
            this.Property(t => t.yu).HasColumnName("yu");
            this.Property(t => t.start_yu).HasColumnName("start_yu");
            this.Property(t => t.time).HasColumnName("time");
            this.Property(t => t.type).HasColumnName("type");
            this.Property(t => t.data).HasColumnName("data");
            this.Property(t => t.system_type).HasColumnName("system_type");
        }
    }
}
